package com.chao.nacos.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @Description:   
 * @className: ProviderController 
 * @author fu wenchao
 * @date 2022/1/18 17:45 
 * @company:西安博达软件股份有限公司
 * @copyright: Copyright (c) 2022
 * @version V1.0 
 */
@RestController
@RequestMapping("/spark")
@Slf4j
@RefreshScope
public class SparkController {

    @Value("${spark.content}")
    private String content;

    @GetMapping("/provider")
    public String display(){
      log.info("请求到：{}",content);
      return "请求到" + content;
    }
}
